<template>
	<h1 v-bind="$attrs">{{ msg }}</h1>
	<button @click="count++">count is: {{ count }}</button>
	<p>Edit <code>components/HelloWorld.vue</code> to test hot module replacement.</p>
	<p>{{ name }}-{{ age }}</p>
	<slot></slot>
</template>

<script>
	export default {
		name: 'HelloWorld',
		// inheritAttrs: false,
		props: {
			msg: String,
		},
		testOptions: '测试数据',
		data() {
			return {
				count: 0,
				name: '小明',
				age: 23,
			}
		},
		created() {
			console.log(this)
		},
	}
</script>
